package com.example.user.coolrun.runnershign;

import android.media.MediaPlayer;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;

import com.example.user.coolrun.R;

import mehdi.sakout.aboutpage.AboutPage;
import mehdi.sakout.aboutpage.Element;

public class SetActivity extends AppCompatActivity {


     MediaPlayer mediaPlayer = new MediaPlayer();
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
        //隐藏状态栏
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        getWindow().requestFeature(Window.FEATURE_CONTENT_TRANSITIONS);
         mediaPlayer = MediaPlayer.create(this,R.raw.au);

        mediaPlayer.start();
        View aboutPage = new AboutPage(this)
                .isRTL(false)
                .setImage(R.drawable.us)//图片
                .setDescription("糖皮一二三")//介绍
                .addItem(new Element().setTitle("Version 1.0"))
                .addGroup("关于我们")
                .addWebsite("https://www.cnblogs.com/YiYiYi/p/10015359.html","游戏说明")
                .addGroup("与我联系")
                .addEmail("zhaoweihaochn@foxmail.com")//邮箱
                .addGitHub("https://github.com/")//github
                .create();

        setContentView(aboutPage);


    }

    protected void onPause(){
        super.onPause();
        mediaPlayer.release();
    }



}

